import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './vantui'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

Vue.filter("RMB", (price) => {
  return "￥ " + Number(price).toFixed(2) + " 元";
});

router.afterEach((to, from, next) => {
  window.scrollTo(0, 0);
})